package entity;

import java.math.BigDecimal;
import java.sql.Date;


public class Vegetable {

    @Override
    public String toString() {
        return '\n'+"蔬菜信息:" +
                " 蔬菜名称:" + vegename +
                " 数量:" + number +
                " 种植日期:" + planttime +
                " 蔬菜价格:" + price +'\n'
                ;
    }


    String vegename;         //蔬菜名称
    Date planttime;           //种植日期
    int number;        // 蔬菜数量
    BigDecimal price; //蔬菜价格
    int vstatus;      //蔬菜状态



    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public Date getPlanttime() {
        return  planttime;
    }

    public void setPlanttime(Date planttime) {
        this.planttime = planttime;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getVegename() {
        return vegename;
    }

    public void setVegename(String vegename) {
        this.vegename = vegename;
    }





    public int getVstatus() {
        return vstatus;
    }

    public void setVstatus(int vstatus) {
        this.vstatus = vstatus;
    }



    public Vegetable() {
        this.number = number;
        this.planttime = planttime;
        this.price = price;
        this.vegename = vegename;
        this.vstatus = vstatus;
    }



}
